Optimal. Leaf size=72 \[ \frac {1}{2} \log \left (-\frac {b x^2}{a}\right ) \log ^2\left (c \left (a+b x^2\right )^p\right )+p \log \left (c \left (a+b x^2\right )^p\right ) \text {Li}_2\left (1+\frac {b x^2}{a}\right )-p^2 \text {Li}_3\left (1+\frac {b x^2}{a}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 72, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.278, Rules used = {2504, 2443,
2481, 2421, 6724} \begin {gather*} p \text {PolyLog}\left (2,\frac {b x^2}{a}+1\right ) \log \left (c \left (a+b x^2\right )^p\right )+p^2 \left (-\text {PolyLog}\left (3,\frac {b x^2}{a}+1\right )\right )+\frac {1}{2} \log \left (-\frac {b x^2}{a}\right ) \log ^2\left (c \left (a+b x^2\right )^p\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2421
Rule 2443
Rule 2481
Rule 2504
Rule 6724
Rubi steps
\begin {align*} \int \frac {\log ^2\left (c \left (a+b x^2\right )^p\right )}{x} \, dx &=\frac {1}{2} \text {Subst}\left (\int \frac {\log ^2\left (c (a+b x)^p\right )}{x} \, dx,x,x^2\right )\\ &=\frac {1}{2} \log \left (-\frac {b x^2}{a}\right ) \log ^2\left (c \left (a+b x^2\right )^p\right )-(b p) \text {Subst}\left (\int \frac {\log \left (-\frac {b x}{a}\right ) \log \left (c (a+b x)^p\right )}{a+b x} \, dx,x,x^2\right )\\ &=\frac {1}{2} \log \left (-\frac {b x^2}{a}\right ) \log ^2\left (c \left (a+b x^2\right )^p\right )-p \text {Subst}\left (\int \frac {\log \left (c x^p\right ) \log \left (-\frac {b \left (-\frac {a}{b}+\frac {x}{b}\right )}{a}\right )}{x} \, dx,x,a+b x^2\right )\\ &=\frac {1}{2} \log \left (-\frac {b x^2}{a}\right ) \log ^2\left (c \left (a+b x^2\right )^p\right )+p \log \left (c \left (a+b x^2\right )^p\right ) \text {Li}_2\left (1+\frac {b x^2}{a}\right )-p^2 \text {Subst}\left (\int \frac {\text {Li}_2\left (\frac {x}{a}\right )}{x} \, dx,x,a+b x^2\right )\\ &=\frac {1}{2} \log \left (-\frac {b x^2}{a}\right ) \log ^2\left (c \left (a+b x^2\right )^p\right )+p \log \left (c \left (a+b x^2\right )^p\right ) \text {Li}_2\left (1+\frac {b x^2}{a}\right )-p^2 \text {Li}_3\left (1+\frac {b x^2}{a}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(163\) vs. \(2(72)=144\).
time = 0.08, size = 163, normalized size = 2.26 \begin {gather*} \log (x) \left (-p \log \left (a+b x^2\right )+\log \left (c \left (a+b x^2\right )^p\right )\right )^2+2 p \left (-p \log \left (a+b x^2\right )+\log \left (c \left (a+b x^2\right )^p\right )\right ) \left (\log (x) \left (\log \left (a+b x^2\right )-\log \left (1+\frac {b x^2}{a}\right )\right )-\frac {1}{2} \text {Li}_2\left (-\frac {b x^2}{a}\right )\right )+\frac {1}{2} p^2 \left (\log \left (-\frac {b x^2}{a}\right ) \log ^2\left (a+b x^2\right )+2 \log \left (a+b x^2\right ) \text {Li}_2\left (1+\frac {b x^2}{a}\right )-2 \text {Li}_3\left (1+\frac {b x^2}{a}\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.05, size = 0, normalized size = 0.00 \[\int \frac {\ln \left (c \left (b \,x^{2}+a \right )^{p}\right )^{2}}{x}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.30, size = 118, normalized size = 1.64 \begin {gather*} \frac {1}{2} \, {\left (\log \left (b x^{2} + a\right )^{2} \log \left (-\frac {b x^{2} + a}{a} + 1\right ) + 2 \, {\rm Li}_2\left (\frac {b x^{2} + a}{a}\right ) \log \left (b x^{2} + a\right ) - 2 \, {\rm Li}_{3}(\frac {b x^{2} + a}{a})\right )} p^{2} + {\left (\log \left (b x^{2} + a\right ) \log \left (-\frac {b x^{2} + a}{a} + 1\right ) + {\rm Li}_2\left (\frac {b x^{2} + a}{a}\right )\right )} p \log \left (c\right ) + \log \left (c\right )^{2} \log \left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\log {\left (c \left (a + b x^{2}\right )^{p} \right )}^{2}}{x}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\ln \left (c\,{\left (b\,x^2+a\right )}^p\right )}^2}{x} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________